<?php

class m140622_133814_add_token extends CDbMigration
{
	public function up()
	{
		$this->addColumn('user', 'token', 'string');
		$this->addColumn('user', 'tokenExpired', 'datetime');
	}

	public function down()
	{
		$this->dropColumn('user', 'token');
		$this->dropColumn('user', 'tokenExpired');
	}

	/*
	// Use safeUp/safeDown to do migration with transaction
	public function safeUp()
	{
	}

	public function safeDown()
	{
	}
	*/
}